<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>dppsu: xdppsu_spm.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">dppsu
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xdppsu__spm_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xdppsu_spm.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains the stream policy maker functions for the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> driver. </p>
<p>These functions set up the DisplayPort TX core's main stream attributes that determine how a video stream will be displayed.</p>
<dl class="section note"><dt>Note</dt><dd>None.</dd></dl>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
</p>
<hr/>
<p>
1.0   aad  01/17/17 Initial release.
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a93872e0beb0405b47b7d689e8f8749c5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#a93872e0beb0405b47b7d689e8f8749c5">XDpPsu_SetColorEncode</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851">XDpPsu_ColorEncoding</a> ColorEncode)</td></tr>
<tr class="memdesc:a93872e0beb0405b47b7d689e8f8749c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the output Video format for the DP core.  <a href="#a93872e0beb0405b47b7d689e8f8749c5">More...</a><br/></td></tr>
<tr class="separator:a93872e0beb0405b47b7d689e8f8749c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60932e88ba047ac16f0b6ce9103d43b7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#a60932e88ba047ac16f0b6ce9103d43b7">XDpPsu_CfgMsaRecalculate</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:a60932e88ba047ac16f0b6ce9103d43b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function calculates the following Main Stream Attributes (MSA):  <a href="#a60932e88ba047ac16f0b6ce9103d43b7">More...</a><br/></td></tr>
<tr class="separator:a60932e88ba047ac16f0b6ce9103d43b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c17c2d8df179f32a3da77787a81f0fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#a5c17c2d8df179f32a3da77787a81f0fc">XDpPsu_CfgMsaUseStandardVideoMode</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, XVidC_VideoMode VideoMode)</td></tr>
<tr class="memdesc:a5c17c2d8df179f32a3da77787a81f0fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the Main Stream Attribute (MSA) values in the configuration structure to match one of the standard display mode timings from the XDpPsu_DmtModes[] standard Display Monitor Timing (DMT) table.  <a href="#a5c17c2d8df179f32a3da77787a81f0fc">More...</a><br/></td></tr>
<tr class="separator:a5c17c2d8df179f32a3da77787a81f0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4a2bfe8c203d186833dd3f1590bc262"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#af4a2bfe8c203d186833dd3f1590bc262">XDpPsu_CfgMsaUseEdidPreferredTiming</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, u8 *Edid)</td></tr>
<tr class="memdesc:af4a2bfe8c203d186833dd3f1590bc262"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the main stream attribute values in the configuration structure to match the preferred timing of the sink monitor.  <a href="#af4a2bfe8c203d186833dd3f1590bc262">More...</a><br/></td></tr>
<tr class="separator:af4a2bfe8c203d186833dd3f1590bc262"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fda86e200651dfc92ad74779ebddbf0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#a2fda86e200651dfc92ad74779ebddbf0">XDpPsu_CfgMsaUseCustom</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html">XDpPsu_MainStreamAttributes</a> *MsaConfigCustom, u8 Recalculate)</td></tr>
<tr class="memdesc:a2fda86e200651dfc92ad74779ebddbf0"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function takes a the main stream attributes from MsaConfigCustom and copies them into InstancePtr-&gt;MsaConfig.  <a href="#a2fda86e200651dfc92ad74779ebddbf0">More...</a><br/></td></tr>
<tr class="separator:a2fda86e200651dfc92ad74779ebddbf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af59b28d1d599ee7d265c7ab0badf1e19"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#af59b28d1d599ee7d265c7ab0badf1e19">XDpPsu_CfgMsaSetBpc</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, u8 BitsPerColor)</td></tr>
<tr class="memdesc:af59b28d1d599ee7d265c7ab0badf1e19"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the bits per color value of the video stream.  <a href="#af59b28d1d599ee7d265c7ab0badf1e19">More...</a><br/></td></tr>
<tr class="separator:af59b28d1d599ee7d265c7ab0badf1e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a288a08c1d83e4f66f0217cab4d695544"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#a288a08c1d83e4f66f0217cab4d695544">XDpPsu_CfgMsaEnSynchClkMode</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr, u8 Enable)</td></tr>
<tr class="memdesc:a288a08c1d83e4f66f0217cab4d695544"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function enables or disables synchronous clock mode for a video stream.  <a href="#a288a08c1d83e4f66f0217cab4d695544">More...</a><br/></td></tr>
<tr class="separator:a288a08c1d83e4f66f0217cab4d695544"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aade3b1675942175dbb3300e2c9d0c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#a4aade3b1675942175dbb3300e2c9d0c0">XDpPsu_SetVideoMode</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:a4aade3b1675942175dbb3300e2c9d0c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function clears the main stream attributes registers of the DisplayPort TX core and sets them to the values specified in the main stream attributes configuration structure.  <a href="#a4aade3b1675942175dbb3300e2c9d0c0">More...</a><br/></td></tr>
<tr class="separator:a4aade3b1675942175dbb3300e2c9d0c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ae04780a260564bbae1fd7c26155bd5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdppsu__spm_8c.html#a0ae04780a260564bbae1fd7c26155bd5">XDpPsu_SetMsaValues</a> (<a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:a0ae04780a260564bbae1fd7c26155bd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the main stream attributes registers of the DisplayPort TX core with the values specified in the main stream attributes configuration structure.  <a href="#a0ae04780a260564bbae1fd7c26155bd5">More...</a><br/></td></tr>
<tr class="separator:a0ae04780a260564bbae1fd7c26155bd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a288a08c1d83e4f66f0217cab4d695544"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_CfgMsaEnSynchClkMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function enables or disables synchronous clock mode for a video stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance </td></tr>
    <tr><td class="paramname">Enable</td><td>if set to 1, will enable synchronous clock mode. Otherwise, if set to 0, synchronous clock mode will be disabled.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aad53f91b8a18773658be4b11a83b1b07">XDpPsu_MainStreamAttributes::Misc0</a>, <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aa3b4c4d678fe829e401a090c946fb97e">XDpPsu_MainStreamAttributes::SynchronousClockMode</a>, and <a class="el" href="xdppsu__hw_8h.html#a2db3e057d0bf4c18c078c8c6c1c6e214">XDPPSU_MAIN_STREAM_MISC0_COMPONENT_FORMAT_SHIFT</a>.</p>

</div>
</div>
<a class="anchor" id="a60932e88ba047ac16f0b6ce9103d43b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_CfgMsaRecalculate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function calculates the following Main Stream Attributes (MSA): </p>
<pre class="fragment"> - Transfer unit size
 - User pixel width
 - Horizontal start
 - Vertical start
 - Horizontal total clock
 - Vertical total clock
 - Misc0
 - Misc1
 - Data per lane
 - Average number of bytes per transfer unit
 - Number of initial wait cycles
</pre><p> These values are derived from:</p>
<ul>
<li>Bits per color</li>
<li>Horizontal resolution</li>
<li>Vertical resolution</li>
<li>Pixel clock (in KHz)</li>
<li>Horizontal sync polarity</li>
<li>Vertical sync polarity</li>
<li>Horizontal front porch</li>
<li>Horizontal sync pulse width</li>
<li>Horizontal back porch</li>
<li>Vertical front porch</li>
<li>Vertical sync pulse width</li>
<li>Vertical back porch</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The MsaConfig structure is modified with the new, calculated values. The main stream attributes that were used to derive the calculated values are untouched in the MsaConfig structure. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a68c1a909b07494754efdb3013fefd3a2">XDpPsu_MainStreamAttributes::AvgBytesPerTU</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a45cd153f3800b1f808f85d3d5a479bb5">XDpPsu_MainStreamAttributes::BitsPerColor</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a05a5424fcecad4f711e93a713918e1b4">XDpPsu_MainStreamAttributes::ComponentFormat</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#ab45384e75710459fcc27223be6b6fab6">XDpPsu_MainStreamAttributes::DataPerLane</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#ab98fd80f6d8ce3ff3fead5dbb3e98b19">XDpPsu_MainStreamAttributes::DynamicRange</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a39efde558c7dc46d473c5d97a5e57f0c">XDpPsu_MainStreamAttributes::HStart</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a3665a9f198631d956098e0e2d8110c83">XDpPsu_MainStreamAttributes::InitWait</a>, <a class="el" href="struct_x_dp_psu___link_config.html#a1e61b94ec7a7329b4b7929251b293e79">XDpPsu_LinkConfig::LaneCount</a>, <a class="el" href="struct_x_dp_psu.html#a37e28c28f46f7e08ce4738a9232a0678">XDpPsu::LinkConfig</a>, <a class="el" href="struct_x_dp_psu___link_config.html#ae1994c57d3126737fc0028f5039b62be">XDpPsu_LinkConfig::LinkRate</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aad53f91b8a18773658be4b11a83b1b07">XDpPsu_MainStreamAttributes::Misc0</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a20a535cfdb61148f3a27e1be513451ff">XDpPsu_MainStreamAttributes::Misc1</a>, <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a5800534070e04bcfbb537f3fc67bf26b">XDpPsu_MainStreamAttributes::NVid</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a473d3bb30522b93cc5ac130d6da59d55">XDpPsu_MainStreamAttributes::PixelClockHz</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aa3b4c4d678fe829e401a090c946fb97e">XDpPsu_MainStreamAttributes::SynchronousClockMode</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a279b948bbb49e9894cb5835a0b580e75">XDpPsu_MainStreamAttributes::TransferUnitSize</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aa65d39155f3e2be26683222b92036ea9">XDpPsu_MainStreamAttributes::UserPixelWidth</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a49874c82f96ffd1d8b9a252318902669">XDpPsu_MainStreamAttributes::VStart</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a187fa13aab8b4f9c6a4a29e0ff834447">XDpPsu_MainStreamAttributes::Vtm</a>, <a class="el" href="xdppsu__hw_8h.html#ab2400bfc1fa2146da8072bbd146f4389">XDPPSU_LANE_COUNT_SET_1</a>, <a class="el" href="xdppsu__hw_8h.html#a07e8772a5d5bc27127f948b47122cec4">XDPPSU_LANE_COUNT_SET_2</a>, <a class="el" href="xdppsu__hw_8h.html#af641cdc72bb85675494a1c463904f8e1">XDPPSU_LINK_BW_SET_162GBPS</a>, <a class="el" href="xdppsu__hw_8h.html#a826616f141ab667c2f91c83507ce2322">XDPPSU_LINK_BW_SET_270GBPS</a>, <a class="el" href="xdppsu__hw_8h.html#ab01ff3802386be5d138cf5a9af031783">XDPPSU_LINK_BW_SET_540GBPS</a>, <a class="el" href="xdppsu__hw_8h.html#a543471a6b6f68ec7fa64c4bdc159aef6">XDPPSU_MAIN_STREAM_MISC0_BDC_10BPC</a>, <a class="el" href="xdppsu__hw_8h.html#a0f4025e10b15002c31e67ff319167574">XDPPSU_MAIN_STREAM_MISC0_BDC_12BPC</a>, <a class="el" href="xdppsu__hw_8h.html#adc5bca138020f36f2ff54990a53f3bc4">XDPPSU_MAIN_STREAM_MISC0_BDC_16BPC</a>, <a class="el" href="xdppsu__hw_8h.html#a28c8927d5dbc09c1767415b65b68ee57">XDPPSU_MAIN_STREAM_MISC0_BDC_6BPC</a>, <a class="el" href="xdppsu__hw_8h.html#a4c4cf8ebf3908d41f086aa164047dc88">XDPPSU_MAIN_STREAM_MISC0_BDC_8BPC</a>, <a class="el" href="xdppsu__hw_8h.html#acee2c3a2e5360398cf20d669767f0838">XDPPSU_MAIN_STREAM_MISC0_BDC_SHIFT</a>, <a class="el" href="xdppsu__hw_8h.html#a2db3e057d0bf4c18c078c8c6c1c6e214">XDPPSU_MAIN_STREAM_MISC0_COMPONENT_FORMAT_SHIFT</a>, <a class="el" href="xdppsu__hw_8h.html#aa7f01b729a14459dd1dd702396841e67">XDPPSU_MAIN_STREAM_MISC0_COMPONENT_FORMAT_YCBCR422</a>, <a class="el" href="xdppsu__hw_8h.html#a848bedf3fe17154e8b43d5dc9001021d">XDPPSU_MAIN_STREAM_MISC0_DYNAMIC_RANGE_SHIFT</a>, <a class="el" href="xdppsu__hw_8h.html#a758fdab5131d4991458d3a515d4304ac">XDPPSU_MAIN_STREAM_MISC0_YCBCR_COLORIMETRY_SHIFT</a>, <a class="el" href="xdppsu__hw_8h.html#a3a788946c8a8f00681b5a2493af74667">XDPPSU_MAIN_STREAM_MISC1_Y_ONLY_EN_MASK</a>, and <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#abbab364a50e80789370359c596dabc14">XDpPsu_MainStreamAttributes::YCbCrColorimetry</a>.</p>

<p>Referenced by <a class="el" href="xdppsu__spm_8c.html#af59b28d1d599ee7d265c7ab0badf1e19">XDpPsu_CfgMsaSetBpc()</a>, <a class="el" href="xdppsu__spm_8c.html#a2fda86e200651dfc92ad74779ebddbf0">XDpPsu_CfgMsaUseCustom()</a>, <a class="el" href="xdppsu__spm_8c.html#af4a2bfe8c203d186833dd3f1590bc262">XDpPsu_CfgMsaUseEdidPreferredTiming()</a>, and <a class="el" href="xdppsu__spm_8c.html#a5c17c2d8df179f32a3da77787a81f0fc">XDpPsu_CfgMsaUseStandardVideoMode()</a>.</p>

</div>
</div>
<a class="anchor" id="af59b28d1d599ee7d265c7ab0badf1e19"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_CfgMsaSetBpc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>BitsPerColor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sets the bits per color value of the video stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance </td></tr>
    <tr><td class="paramname">BitsPerColor</td><td>is the new number of bits per color to use.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The InstancePtr-&gt;MsaConfig structure is modified to reflect the new main stream attributes associated with a new bits per color value. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a45cd153f3800b1f808f85d3d5a479bb5">XDpPsu_MainStreamAttributes::BitsPerColor</a>, <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, and <a class="el" href="xdppsu_8h.html#a60932e88ba047ac16f0b6ce9103d43b7">XDpPsu_CfgMsaRecalculate()</a>.</p>

</div>
</div>
<a class="anchor" id="a2fda86e200651dfc92ad74779ebddbf0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_CfgMsaUseCustom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu___main_stream_attributes.html">XDpPsu_MainStreamAttributes</a> *&#160;</td>
          <td class="paramname"><em>MsaConfigCustom</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Recalculate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function takes a the main stream attributes from MsaConfigCustom and copies them into InstancePtr-&gt;MsaConfig. </p>
<p>If desired, given a base set of attributes, the rest of the attributes may be derived. The minimal required main stream attributes (MSA) that must be contained in the MsaConfigCustom structure are:</p>
<ul>
<li>Pixel clock (in Hz)</li>
<li>Horizontal sync polarity</li>
<li>Vertical sync polarity</li>
<li>Horizontal sync pulse width</li>
<li>Vertical sync pulse width</li>
<li>Horizontal resolution</li>
<li>Vertical resolution</li>
<li>Vertical back porch</li>
<li>Vertical front porch</li>
<li>Horizontal back porch</li>
<li>Horizontal front porch</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance. </td></tr>
    <tr><td class="paramname">MsaConfigCustom</td><td>is the structure that will be used to copy the main stream attributes from (into InstancePtr-&gt;MsaConfig). </td></tr>
    <tr><td class="paramname">Recalculate</td><td>is a boolean enable that determines whether or not the main stream attributes should be recalculated.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The InstancePtr-&gt;MsaConfig structure is modified with the new values. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a68c1a909b07494754efdb3013fefd3a2">XDpPsu_MainStreamAttributes::AvgBytesPerTU</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#ab45384e75710459fcc27223be6b6fab6">XDpPsu_MainStreamAttributes::DataPerLane</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a39efde558c7dc46d473c5d97a5e57f0c">XDpPsu_MainStreamAttributes::HStart</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a3665a9f198631d956098e0e2d8110c83">XDpPsu_MainStreamAttributes::InitWait</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aad53f91b8a18773658be4b11a83b1b07">XDpPsu_MainStreamAttributes::Misc0</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a20a535cfdb61148f3a27e1be513451ff">XDpPsu_MainStreamAttributes::Misc1</a>, <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a5800534070e04bcfbb537f3fc67bf26b">XDpPsu_MainStreamAttributes::NVid</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a473d3bb30522b93cc5ac130d6da59d55">XDpPsu_MainStreamAttributes::PixelClockHz</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a279b948bbb49e9894cb5835a0b580e75">XDpPsu_MainStreamAttributes::TransferUnitSize</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aa65d39155f3e2be26683222b92036ea9">XDpPsu_MainStreamAttributes::UserPixelWidth</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a49874c82f96ffd1d8b9a252318902669">XDpPsu_MainStreamAttributes::VStart</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a187fa13aab8b4f9c6a4a29e0ff834447">XDpPsu_MainStreamAttributes::Vtm</a>, and <a class="el" href="xdppsu_8h.html#a60932e88ba047ac16f0b6ce9103d43b7">XDpPsu_CfgMsaRecalculate()</a>.</p>

</div>
</div>
<a class="anchor" id="af4a2bfe8c203d186833dd3f1590bc262"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_CfgMsaUseEdidPreferredTiming </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8 *&#160;</td>
          <td class="paramname"><em>Edid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sets the main stream attribute values in the configuration structure to match the preferred timing of the sink monitor. </p>
<p>This Preferred Timing Mode (PTM) information is stored in the sink's Extended Display Identification Data (EDID).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance </td></tr>
    <tr><td class="paramname">Edid</td><td>is a pointer to the Edid to use for the specified stream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The InstancePtr-&gt;MsaConfig structure is modified to reflect the main stream attribute values associated to the preferred timing of the sink monitor. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a473d3bb30522b93cc5ac130d6da59d55">XDpPsu_MainStreamAttributes::PixelClockHz</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a187fa13aab8b4f9c6a4a29e0ff834447">XDpPsu_MainStreamAttributes::Vtm</a>, and <a class="el" href="xdppsu_8h.html#a60932e88ba047ac16f0b6ce9103d43b7">XDpPsu_CfgMsaRecalculate()</a>.</p>

</div>
</div>
<a class="anchor" id="a5c17c2d8df179f32a3da77787a81f0fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_CfgMsaUseStandardVideoMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XVidC_VideoMode&#160;</td>
          <td class="paramname"><em>VideoMode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sets the Main Stream Attribute (MSA) values in the configuration structure to match one of the standard display mode timings from the XDpPsu_DmtModes[] standard Display Monitor Timing (DMT) table. </p>
<p>The XDpPsu_VideoMode enumeration in <a class="el" href="xdppsu_8h.html" title="The Xilinx DisplayPort transmitter (DPTX_PS) driver. ">xdppsu.h</a> lists the available video modes.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance. </td></tr>
    <tr><td class="paramname">VideoMode</td><td>is one of the enumerated standard video modes that is used to determine the MSA values to be used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The InstancePtr-&gt;MsaConfig structure is modified to reflect the MSA values associated to the specified video mode. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a473d3bb30522b93cc5ac130d6da59d55">XDpPsu_MainStreamAttributes::PixelClockHz</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a187fa13aab8b4f9c6a4a29e0ff834447">XDpPsu_MainStreamAttributes::Vtm</a>, and <a class="el" href="xdppsu_8h.html#a60932e88ba047ac16f0b6ce9103d43b7">XDpPsu_CfgMsaRecalculate()</a>.</p>

</div>
</div>
<a class="anchor" id="a93872e0beb0405b47b7d689e8f8749c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_SetColorEncode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851">XDpPsu_ColorEncoding</a>&#160;</td>
          <td class="paramname"><em>ColorEncode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sets the output Video format for the DP core. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance. </td></tr>
    <tr><td class="paramname">ColorEncode</td><td>is an enumarator for output color encoding schemes</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The MsaConfig structure is modified with the new, calculated values. The main stream attributes that were used to derive the calculated values are untouched in the MsaConfig structure. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a05a5424fcecad4f711e93a713918e1b4">XDpPsu_MainStreamAttributes::ComponentFormat</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#ab98fd80f6d8ce3ff3fead5dbb3e98b19">XDpPsu_MainStreamAttributes::DynamicRange</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aad53f91b8a18773658be4b11a83b1b07">XDpPsu_MainStreamAttributes::Misc0</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a20a535cfdb61148f3a27e1be513451ff">XDpPsu_MainStreamAttributes::Misc1</a>, <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851a2d5a375b359c9f58a59fc935d248699c">XDPPSU_CENC_RGB</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851ae7b6c5198c5816c89fa0003c20a601ff">XDPPSU_CENC_XVYCC_422_BT601</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851a63ca1aad8ed6f51611e20f7361764414">XDPPSU_CENC_XVYCC_422_BT709</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851af2e71bbe4b7aa0287a4c9b1b77750b5d">XDPPSU_CENC_XVYCC_444_BT601</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851ab1d76ebc9fa0e4f5810c267f8106b577">XDPPSU_CENC_XVYCC_444_BT709</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851a1b1deea18bbbab732a0c2df2a8e6133b">XDPPSU_CENC_YCBCR_422_BT601</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851af72c3d85b341dd83f2fc1cc7f14c0722">XDPPSU_CENC_YCBCR_422_BT709</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851ae634038a76a619c1de930d813b8679d1">XDPPSU_CENC_YCBCR_444_BT601</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851a97f6a1ab58d7027c728c017a59e6c0fd">XDPPSU_CENC_YCBCR_444_BT709</a>, <a class="el" href="xdppsu_8h.html#abc1a92f88c89695f8bfa5f7d7ad4d851aaa59c0c71ca41b01f97161d4513d9b5a">XDPPSU_CENC_YONLY</a>, <a class="el" href="xdppsu__hw_8h.html#a62cef3c8f37c23bbcb361cf27e78b79a">XDPPSU_MAIN_STREAM_MISC0_COMPONENT_FORMAT_RGB</a>, <a class="el" href="xdppsu__hw_8h.html#aa7f01b729a14459dd1dd702396841e67">XDPPSU_MAIN_STREAM_MISC0_COMPONENT_FORMAT_YCBCR422</a>, <a class="el" href="xdppsu__hw_8h.html#acf4d40b05aab671f8d7339ce3b3a1bff">XDPPSU_MAIN_STREAM_MISC0_COMPONENT_FORMAT_YCBCR444</a>, <a class="el" href="xdppsu__hw_8h.html#a3a788946c8a8f00681b5a2493af74667">XDPPSU_MAIN_STREAM_MISC1_Y_ONLY_EN_MASK</a>, and <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#abbab364a50e80789370359c596dabc14">XDpPsu_MainStreamAttributes::YCbCrColorimetry</a>.</p>

</div>
</div>
<a class="anchor" id="a0ae04780a260564bbae1fd7c26155bd5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_SetMsaValues </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sets the main stream attributes registers of the DisplayPort TX core with the values specified in the main stream attributes configuration structure. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a68c1a909b07494754efdb3013fefd3a2">XDpPsu_MainStreamAttributes::AvgBytesPerTU</a>, <a class="el" href="struct_x_dp_psu___config.html#a59991a74d33038e382665a3460a669ee">XDpPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_dp_psu.html#a95a9619caa3d18b50a4562de54d57704">XDpPsu::Config</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#ab45384e75710459fcc27223be6b6fab6">XDpPsu_MainStreamAttributes::DataPerLane</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a39efde558c7dc46d473c5d97a5e57f0c">XDpPsu_MainStreamAttributes::HStart</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a3665a9f198631d956098e0e2d8110c83">XDpPsu_MainStreamAttributes::InitWait</a>, <a class="el" href="struct_x_dp_psu.html#a1a3729a9b372f0371dea0a523cdf639d">XDpPsu::IsReady</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aad53f91b8a18773658be4b11a83b1b07">XDpPsu_MainStreamAttributes::Misc0</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a20a535cfdb61148f3a27e1be513451ff">XDpPsu_MainStreamAttributes::Misc1</a>, <a class="el" href="struct_x_dp_psu.html#a2635913620470c43b99ee014506ef425">XDpPsu::MsaConfig</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a5800534070e04bcfbb537f3fc67bf26b">XDpPsu_MainStreamAttributes::NVid</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a473d3bb30522b93cc5ac130d6da59d55">XDpPsu_MainStreamAttributes::PixelClockHz</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a279b948bbb49e9894cb5835a0b580e75">XDpPsu_MainStreamAttributes::TransferUnitSize</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#aa65d39155f3e2be26683222b92036ea9">XDpPsu_MainStreamAttributes::UserPixelWidth</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a49874c82f96ffd1d8b9a252318902669">XDpPsu_MainStreamAttributes::VStart</a>, <a class="el" href="struct_x_dp_psu___main_stream_attributes.html#a187fa13aab8b4f9c6a4a29e0ff834447">XDpPsu_MainStreamAttributes::Vtm</a>, <a class="el" href="xdppsu__hw_8h.html#a2221a5ada815d383adda40c0badcb74d">XDPPSU_FRAC_BYTES_PER_TU</a>, <a class="el" href="xdppsu__hw_8h.html#ac1bfc95808e680c14095348df796eff3">XDPPSU_INIT_WAIT</a>, <a class="el" href="xdppsu__hw_8h.html#ae42d697245eb12b0caae5f2cdec459ed">XDPPSU_M_VID</a>, <a class="el" href="xdppsu__hw_8h.html#a27ba254de82f62941d184b8962dca6a9">XDPPSU_MAIN_STREAM_HRES</a>, <a class="el" href="xdppsu__hw_8h.html#a6515d0120b4a6fcd2769d651f9c85335">XDPPSU_MAIN_STREAM_HSTART</a>, <a class="el" href="xdppsu__hw_8h.html#a12ef125fc3c17f329374fb7082d91e81">XDPPSU_MAIN_STREAM_HSWIDTH</a>, <a class="el" href="xdppsu__hw_8h.html#acfae349a9726fe324642e099ebbfb356">XDPPSU_MAIN_STREAM_HTOTAL</a>, <a class="el" href="xdppsu__hw_8h.html#a4c8b7aedd1df781e3ca81a9d54fd3e6a">XDPPSU_MAIN_STREAM_MISC0</a>, <a class="el" href="xdppsu__hw_8h.html#a68bdadc636b21a7130f9d6f2444b6908">XDPPSU_MAIN_STREAM_MISC1</a>, <a class="el" href="xdppsu__hw_8h.html#aa7738c02d0883e7d17f1ab000af800de">XDPPSU_MAIN_STREAM_POLARITY</a>, <a class="el" href="xdppsu__hw_8h.html#ae227c02effff3397f8a882aaf587b436">XDPPSU_MAIN_STREAM_POLARITY_VSYNC_POL_SHIFT</a>, <a class="el" href="xdppsu__hw_8h.html#a9d8763c359f1036ef3af7aabd92fc61b">XDPPSU_MAIN_STREAM_VRES</a>, <a class="el" href="xdppsu__hw_8h.html#adaccb873812cdd56a0a9400f525bccb0">XDPPSU_MAIN_STREAM_VSTART</a>, <a class="el" href="xdppsu__hw_8h.html#a89b4198d0838f5b13c3efc018bfff63e">XDPPSU_MAIN_STREAM_VSWIDTH</a>, <a class="el" href="xdppsu__hw_8h.html#aa4d7607e0a3dbca00150115881ecca65">XDPPSU_MAIN_STREAM_VTOTAL</a>, <a class="el" href="xdppsu__hw_8h.html#ae809ab48c87900a9b2cd219d8385f3d5">XDPPSU_MIN_BYTES_PER_TU</a>, <a class="el" href="xdppsu__hw_8h.html#a402b43e835fbfff366b961880262d3ba">XDPPSU_N_VID</a>, <a class="el" href="xdppsu__hw_8h.html#a842268c74f2d73c00df473e71fb54b86">XDPPSU_TU_SIZE</a>, <a class="el" href="xdppsu__hw_8h.html#a30a942297a72b501359f4818da8e5515">XDPPSU_USER_DATA_COUNT_PER_LANE</a>, <a class="el" href="xdppsu__hw_8h.html#aa9be13696d4f6db43e903d239a61dd2b">XDPPSU_USER_PIXEL_WIDTH</a>, and <a class="el" href="xdppsu__hw_8h.html#a823328e4a95aa3ba27553603940a7ba8">XDpPsu_WriteReg</a>.</p>

<p>Referenced by <a class="el" href="xdppsu__spm_8c.html#a4aade3b1675942175dbb3300e2c9d0c0">XDpPsu_SetVideoMode()</a>.</p>

</div>
</div>
<a class="anchor" id="a4aade3b1675942175dbb3300e2c9d0c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XDpPsu_SetVideoMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dp_psu.html">XDpPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function clears the main stream attributes registers of the DisplayPort TX core and sets them to the values specified in the main stream attributes configuration structure. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_dp_psu.html" title="The XDpPsu driver instance data. ">XDpPsu</a> instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_dp_psu.html#a1a3729a9b372f0371dea0a523cdf639d">XDpPsu::IsReady</a>, and <a class="el" href="xdppsu_8h.html#a0ae04780a260564bbae1fd7c26155bd5">XDpPsu_SetMsaValues()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
